package com.tang.web_standard.controller;

import com.tang.web_standard.domain.User;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/16 20:14
 * @Desc
 * @Remarks
 */
@RequestMapping("/user")
@RestController
public class UserController {


    @PostMapping("/add")
    public String add(@Validated @RequestBody User user) {
        return "添加成功";
    }

}
